if ENABLE_PROTOCOL_GADU

ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../build/
ASSEMBLY_NAME=Galaxium.Protocol.GaduGadu
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN = galaxium-protocol-gg.pc.in

COMPILE_TARGET = library

REFERENCES =  \
	-pkg:anculus-core \
	-r:../../build/Galaxium.Client.dll \
	-r:../../build/Galaxium.Core.dll \
	-r:../../build/Galaxium.Gui.dll \
	-r:../../build/Galaxium.Protocol.dll \
	-r:Mono.Security \
	-r:System \
	-r:System.Xml

RESOURCES = Galaxium.Protocol.GaduGadu.addin 
EXTRAS = 
DATA_FILES = 

FILES =  \
	Abstract/GaduCommand.cs \
	Commands/CommandHeader.cs \
	Commands/Incoming/GetInitialStatusCommand.cs \
	Commands/Incoming/GetStatusCommand.cs \
	Commands/Incoming/ReceiveMessageCommand.cs \
	Commands/Incoming/SendMessageAckCommand.cs \
	Commands/Incoming/UserListReplyCommand.cs \
	Commands/Incoming/WelcomeCommand.cs \
	Commands/Outgoing/AddNotifyCommand.cs \
	Commands/Outgoing/EmptyListCommand.cs \
	Commands/Outgoing/LoginCommand.cs \
	Commands/Outgoing/NotifyLastCommand.cs \
	Commands/Outgoing/PingCommand.cs \
	Commands/Outgoing/RemoveNotifyCommand.cs \
	Commands/Outgoing/SendMessageCommand.cs \
	Commands/Outgoing/SetStatusCommand.cs \
	Commands/Outgoing/UserListRequestCommand.cs \
	Connections/GaduConnection.cs \
	Connections/GaduConnectionInfo.cs \
	GaduAccountCache.cs \
	GaduConstants.cs \
	GaduConversation.cs \
	GaduConversationManager.cs \
	GaduProtocol.cs \
	GaduSession.cs \
	Interfaces/IGaduCommand.cs \
	Objects/GaduAccount.cs \
	Objects/GaduContact.cs \
	Objects/GaduDisplayImage.cs \
	Objects/GaduGroup.cs \
	Objects/GaduPresence.cs

GENERATED_FILES = AssemblyInfo.cs

all: $(ASSEMBLY)

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include

else
endif
